bitkeeper revision 1.1159.258.67 (4243f8f4bOCvwTNPuva3gzEiuhWgSw)
authoriap10@freefall.cl.cam.ac.uk[iap10] <iap10@freefall.cl.cam.ac.uk[iap10]>
Fri, 25 Mar 2005 11:41:40 +0000 (11:41 +0000)
committeriap10@freefall.cl.cam.ac.uk[iap10] <iap10@freefall.cl.cam.ac.uk[iap10]>
Fri, 25 Mar 2005 11:41:40 +0000 (11:41 +0000)
fix to xend

tools/python/xen/xend/Vifctl.py

index bfc750315a5c331661c448a361b7d639aca9eba4..fe33ecbc712f7fcdd23cfdd15dc8919692eeacca 100644 (file)
@@ -39,7 +39,8 @@ def network(op, script=None, bridge=None, antispoof=None):
 
 def set_vif_name(vif_old, vif_new):
     if vif_old == vif_new:
-        vif = view_new
+        vif = vif_new
+        return vif
     if os.system("ip link show %s" % vif_old) == 0:
         os.system("ip link set %s down" % vif_old)
         os.system("ip link set %s name %s" % (vif_old, vif_new))